.class public Lcom/waiqin365/lightapp/order/b/a/s;
.super Lcom/waiqin365/lightapp/order/b/d;


# instance fields
.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:Ljava/util/List;

.field public e:Lcom/waiqin365/lightapp/chexiao/c/t;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/16 v0, 0x7d

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/order/b/d;-><init>(I)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/b/a/s;->d:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 11

    const/4 v0, 0x1

    const/4 v1, 0x0

    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v3, "code"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_0

    const-string/jumbo v3, "code"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/waiqin365/lightapp/order/b/a/s;->b:Ljava/lang/String;

    const-string/jumbo v3, "1"

    iget-object v4, p0, Lcom/waiqin365/lightapp/order/b/a/s;->b:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_2

    const-string/jumbo v3, "metadata"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1

    const-string/jumbo v3, "metadata"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    move v3, v1

    :goto_0
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v3, v2, :cond_1

    invoke-virtual {v4, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v5

    new-instance v6, Lcom/waiqin365/lightapp/chexiao/c/t;

    invoke-direct {v6}, Lcom/waiqin365/lightapp/chexiao/c/t;-><init>()V

    const-string/jumbo v2, "compId"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_3

    const-string/jumbo v2, "compId"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_1
    iput-object v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->a:Ljava/lang/String;

    const-string/jumbo v2, "type"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_4

    const-string/jumbo v2, "type"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_2
    iput-object v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->b:Ljava/lang/String;

    const-string/jumbo v2, "name"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_5

    const-string/jumbo v2, "name"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_3
    iput-object v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->c:Ljava/lang/String;

    const-string/jumbo v2, "code"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_6

    const-string/jumbo v2, "code"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_4
    iput-object v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->d:Ljava/lang/String;

    const-string/jumbo v2, "isRequired"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_7

    const-string/jumbo v2, "1"

    const-string/jumbo v7, "isRequired"

    invoke-virtual {v5, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_7

    move v2, v0

    :goto_5
    iput-boolean v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->f:Z

    const-string/jumbo v2, "isInner"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_8

    const-string/jumbo v2, "1"

    const-string/jumbo v7, "isInner"

    invoke-virtual {v5, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_8

    move v2, v0

    :goto_6
    iput-boolean v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->g:Z

    const-string/jumbo v2, "isRequired"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_9

    const-string/jumbo v2, "1"

    const-string/jumbo v7, "isRequired"

    invoke-virtual {v5, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_9

    move v2, v0

    :goto_7
    iput-boolean v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->f:Z

    const-string/jumbo v2, "readonly"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_a

    const-string/jumbo v2, "1"

    const-string/jumbo v7, "readonly"

    invoke-virtual {v5, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_a

    move v2, v0

    :goto_8
    iput-boolean v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->h:Z

    const-string/jumbo v2, "sequence"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_b

    const-string/jumbo v2, "sequence"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_9
    iput-object v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->i:Ljava/lang/String;

    const-string/jumbo v2, "defaultValue"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_c

    const-string/jumbo v2, "defaultValue"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_a
    iput-object v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->j:Ljava/lang/String;

    const-string/jumbo v2, "component"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    const-string/jumbo v7, "length"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v7

    if-nez v7, :cond_d

    const-string/jumbo v7, "length"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_b
    iput-object v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->e:Ljava/lang/String;

    const-string/jumbo v2, "extParam"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v5

    const-string/jumbo v2, "selectItem"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_e

    const-string/jumbo v2, "selectItem"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_c
    const-string/jumbo v7, "#"

    invoke-virtual {v2, v7}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v7

    array-length v8, v7

    move v2, v1

    :goto_d
    if-ge v2, v8, :cond_f

    aget-object v9, v7, v2

    new-instance v10, Lcom/waiqin365/base/c/a;

    invoke-direct {v10, v9, v9}, Lcom/waiqin365/base/c/a;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v9, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->k:Ljava/util/List;

    invoke-interface {v9, v10}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v2, v2, 0x1

    goto :goto_d

    :cond_0
    move v0, v1

    :cond_1
    :goto_e
    return v0

    :cond_2
    const-string/jumbo v1, "message"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string/jumbo v1, "message"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/lightapp/order/b/a/s;->c:Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_e

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_e

    :cond_3
    :try_start_1
    const-string/jumbo v2, ""

    goto/16 :goto_1

    :cond_4
    const-string/jumbo v2, ""

    goto/16 :goto_2

    :cond_5
    const-string/jumbo v2, ""

    goto/16 :goto_3

    :cond_6
    const-string/jumbo v2, ""

    goto/16 :goto_4

    :cond_7
    move v2, v1

    goto/16 :goto_5

    :cond_8
    move v2, v1

    goto/16 :goto_6

    :cond_9
    move v2, v1

    goto/16 :goto_7

    :cond_a
    move v2, v1

    goto/16 :goto_8

    :cond_b
    const-string/jumbo v2, ""

    goto/16 :goto_9

    :cond_c
    const-string/jumbo v2, ""

    goto/16 :goto_a

    :cond_d
    const-string/jumbo v2, ""

    goto :goto_b

    :cond_e
    const-string/jumbo v2, ""

    goto :goto_c

    :cond_f
    const-string/jumbo v2, "max"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_11

    const-string/jumbo v2, "max"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_f
    iput-object v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->l:Ljava/lang/String;

    const-string/jumbo v2, "selectable"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_12

    const-string/jumbo v2, "1"

    const-string/jumbo v7, "selectable"

    invoke-virtual {v5, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_12

    move v2, v0

    :goto_10
    iput-boolean v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->m:Z

    const-string/jumbo v2, "pwidth"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_13

    const-string/jumbo v2, "pwidth"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_11
    iput-object v2, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->n:Ljava/lang/String;

    const-string/jumbo v2, "business_id"

    iget-object v5, v6, Lcom/waiqin365/lightapp/chexiao/c/t;->d:Ljava/lang/String;

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_10

    iput-object v6, p0, Lcom/waiqin365/lightapp/order/b/a/s;->e:Lcom/waiqin365/lightapp/chexiao/c/t;

    :cond_10
    iget-object v2, p0, Lcom/waiqin365/lightapp/order/b/a/s;->d:Ljava/util/List;

    invoke-interface {v2, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto/16 :goto_0

    :cond_11
    const-string/jumbo v2, ""

    goto :goto_f

    :cond_12
    move v2, v1

    goto :goto_10

    :cond_13
    const-string/jumbo v2, ""
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_11
.end method
